package com.wanhe.base.model.holder;


import com.wanhe.base.model.base.Dish;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Administrator on 2017/5/11.
 */

public class DishConfHolder extends HashMap<String, List<Dish>> {
    private static DishConfHolder ourInstance;

    public static DishConfHolder getInstance() {
        if (ourInstance == null) {
            ourInstance = new DishConfHolder();
        }
        return ourInstance;
    }

    private DishConfHolder() {
    }

    public void release() {
        ourInstance.clear();
        ourInstance = null;
    }
}
